<template>
  <div class="">
    <template v-for="(item, index) in headData">
      <div class="list-content" :key="index">
        <div class="list-item">
          <div class="list-left">
            <div>{{ item.text }}</div>
            <!-- <div v-if="item.children">
            <div></div>
          </div> -->
          </div>
          <div class="list-right">
            <div>{{ content[item.field] }}</div>
          </div>
        </div>
      </div>
    </template>
  </div>
</template>

<script type="text/ecmascript-6">
/*eslint-disable*/
export default {
  props:{
    content:{
      type:Object,
      default(){
        return {}
      }
    },
    headData:{
      type:Array,
      default(){
        return []
      },
    }
  }
}
</script>

<style lang="less" scoped>
.list-item {
  font-weight: 400;
  background-color: #fff;
  margin: 11px 0;
  padding: 12px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  .list-left {
    font-size: 17px;
    font-family: PingFangSC-Regular, PingFang SC;
    color: #333333;
  }
  .list-right {
    font-size: 16px;
    font-family: PingFangSC-Regular, PingFang SC;
    color: #999999;
    max-width: 45%;
    text-align: right;
  }
}
</style>
